//
//  SSSHeader.h
//  SSSAllPeopleBenefit
//
//  Created by Darker on 2017/2/22.
//  Copyright © 2017年 Darker. All rights reserved.
//

#ifndef SSSHeader_h
#define SSSHeader_h
#import <Foundation/Foundation.h>


/*! 友盟分享 SDK：接入自己项目时需要更改各个属性值 */
#define ZD_Umeng_Appkey     @"56f217d467e58e513a000434"
#define ZD_Sina_AppKey      @"2447331824"
#define ZD_SinaAppSecret    @"4ee72cf1958fa92b88570d1b99328718"
#define ZD_WX_APPKEY        @"wx19d8c52e02fa7556"
#define ZD_WX_APPSECRET     @"90eeb0c9ef2a1c99fb473890809f7f19"
#define ZD_QQKey            @"wrGGgg89e0lqqoXT"
#define ZD_QQAppID          @"1105285308"

//#ifdef DEBUG
//# define SSSLog(fmt, ...) NSLog((@"[文件名:%s]\n" "[函数名:%s]\n" "[行号:%d] \n" fmt), __FILE__, __FUNCTION__, __LINE__, ##__VA_ARGS__);
//#else
//# define SSSLog(...);
//#endif

// 屏幕的宽度
#define KSCREEN_Width [UIScreen mainScreen].bounds.size.width

// 屏幕的高度
#define KSCREEN_Height [UIScreen mainScreen].bounds.size.height

#define FSCREEN_Width self.view.frame.size.width

#define FSCREEN_Height self.view.frame.size.height

#define FLEXIBLE_W KSCREEN_Width /ORIGINAL_W
#define FLEXIBLE_H KSCREEN_Height /ORIGINAL_H

#define ORIGINAL_W 375
#define ORIGINAL_H 667
// 机型
/** 4S 4*/
#define kDeviceIs4S (KSCREEN_Height == 480)
#define kDeviceIs5S (KSCREEN_Height == 568)
#define kDeviceIs6S (KSCREEN_Height == 667)
#define kDeviceIs6SPlusMore (KSCREEN_Height >= 736)
// 1024
#define kDeviceIsPad (KSCREEN_Height >1000)

//默认边距
#define ZDMargin 10

// iPhone6的宽度
#define currentScreenWidth 375.0

// iPhone6的高度
#define currentScreenHeight 667.0

// 计划图纸的屏幕的宽度和现在机型的比例
#define WidthIos6CompeteWithCurrent(width) (float)(width / currentScreenWidth * KSCREEN_Width)

// 计划图纸的屏幕的高度和现在机型的比例
#define HeigthIos6CompeteWithCurrent(height) (float)(height / currentScreenHeight * KSCREEN_Height)


//返回安全的字符串
#define kSafeString(str) str.length > 0 ? str : @""

#define Font(font)  [SSSFont systemFontOfSize:font]
//状态栏高度
#define STATUS_BAR_HEIGHT 20
//NavBar高度
#define NAVIGATION_BAR_HEIGHT 44
//主窗口
#define kKeyWindow [UIApplication sharedApplication].keyWindow
#define showTipHudStr(str) [QMUITips showWithText:str inView:kKeyWindow hideAfterDelay:1];
/**
 *  间隔
 */
#define SSSNavBarTop 64
#define SSSTitlesViewH 40
#define SSSTabBarH 49
#define SSSEventScale 1.5


#endif /* SSSHeader_h */
